﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JM.JCY.BusinessEntity;

namespace JM.JCY.DataAccess
{
    public class LawCaseDA : JCYDataAccessBasecs
    {
        public void UpdateSelfOperate(LawCaseDataSet.T_SelfOperateDataTable dt)
        {
            base.Helper.Update(dt);
        }

        public LawCaseDataSet.T_SelfOperateDataTable GetLawCaseSafety(int caseId, string userName)
        {
            var dt = new LawCaseDataSet.T_SelfOperateDataTable();
            base.Helper.Fill(dt, "P_SelfOperate_S", caseId, userName);
            return dt;
        }

        public void UpdateLawCaseMaterial(LawCaseDataSet.T_LawCaseMaterialDataTable dt)
        {
            base.Helper.Update(dt);
        }

        public LawCaseDataSet.T_LawCaseMaterialDataTable GetLawCaseMaterial(int caseId, string filler)
        {
            var dt = new LawCaseDataSet.T_LawCaseMaterialDataTable();
            base.Helper.Fill(dt, "P_LawCaseMaterial_S", caseId, filler);
            return dt;
        }
    }
}
